﻿<local:DocumentBase x:Class="WPFExcelReport.YGRVK02LIST"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:INTEX.DataBase" 
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    Loaded="Window_Loaded" 
                    xmlns:ChartEx="clr-namespace:WPFExcelReport.Chart;assembly=ITXVIEWS"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    Background="White" 
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:MaskPrice  x:Key="dprice"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:Divideby10000  x:Key="d10000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <CollectionViewSource   x:Key="vwMaster" Source="{Binding Path=SetMaster.VKPOS}" />
        <CollectionViewSource  x:Key="vwEvents" Source="{Binding Path=SetDetail.ICC_WFEVENTS}" />
        <CollectionViewSource   x:Key="vwTXT" Source="{Binding Path=SetMaster.ICC_TXTKON}" />
        <CollectionViewSource   x:Key="vwVKKOPF" Source="{Binding Path=SetMaster.VKKOPF}" />
        <CollectionViewSource   x:Key="vwPVKPOS" Source="{Binding Path=SetDetail.VKPOS}" />
        <CollectionViewSource   x:Key="vwPTXT" Source="{Binding Path=SetDetail.ICC_TXTKON}" />
    </local:DocumentBase.Resources>
    <TabControl> 
        <TabItem Header="查询">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto" ></RowDefinition>
                    <RowDefinition Height="1*" ></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="56*"></ColumnDefinition>
                    <ColumnDefinition Width="509*"/>
                    <ColumnDefinition Width="566*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Expander  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"
            Name="expLog" ExpandDirection="Down" IsExpanded="True" Margin="0,0,0.4,0.4">
                    <StackPanel>
                        <WrapPanel Name="zoneCommand" Margin="4,0,51,6" Grid.ColumnSpan="3">
                            <Label Content="系统" Width="Auto" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                            <TextBox Name="txtMANDANT" MaxLength="2" Width="40" Margin="10,0,0,0" Text="00" HorizontalAlignment="Left" Background="Pink"  TabIndex="1" />
                            <Label Content="语言" Width="Auto" Margin="0,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <TextBox IsReadOnly="True" Name="txtSPRACHKZ" Width="40" Margin="0,0,0,0" Text="" MaxLength="1" HorizontalAlignment="Left" Background="Pink" FontSize="18" TabIndex="2" />
                            <Label Content="用户名" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <TextBox Name="txtUserID" Width="80" Margin="10,0,0,0" Text="" HorizontalAlignment="Left" Background="Yellow" FontSize="18" MaxLength="8" AcceptsTab="False" CharacterCasing="Upper" KeyboardNavigation.TabIndex="0" TabIndex="3" />
                            <Label Content="密码" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <PasswordBox Name="txtPassword" Width="80" Margin="10,0,0,0" HorizontalAlignment="Left" Background="Yellow"  KeyboardNavigation.TabIndex="1" TabIndex="4" />
                            <Button Height="Auto" Margin="10,0,0,0" Name="btnLogIn" Width="Auto" Click="btnLogIn_Click" KeyboardNavigation.TabIndex="2" IsDefault="True" TabIndex="5">
                                登录
                            </Button>
                            <TextBlock Name="Administration"></TextBlock>
                            <CheckBox FontSize="14" Content="属于评审组" Name="IsBelongs2V9"
                              Visibility="Hidden"></CheckBox>
                            <TextBlock FontSize="14" MinWidth="200" Width="Auto" Name="MemberV9" Background="#FF00AF00"
                               Visibility="Hidden"></TextBlock>
                            <TextBlock Name="txtLogIn" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left" Background="White" FontSize="14" KeyboardNavigation.TabIndex="1" />
                        </WrapPanel>
                    </StackPanel>
                </Expander>
                <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Margin="0,0,0,0" >
                    <WrapPanel Name="ZoneOrder">  
                        <Grid  VerticalAlignment="Center">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="客户号:" Grid.Column="0"   HorizontalAlignment="Left" Height="Auto"  VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1" Grid.Row="0" Height="20" HorizontalAlignment="Left"  
                                                                 Text="{Binding Path=VKKKUNDNR, Source={StaticResource ResourceKey=vwVKKOPF}}" VerticalAlignment="Center" Width="80" />
                        </Grid>
                        <TextBlock Width="Auto" Height="Auto" VerticalAlignment="Center" >订单号:</TextBlock>
                        <TextBox   Name="txtVKPAUFKRS" MaxLength="2" Height="20" Width="40" Margin="0,0,0,0"  HorizontalAlignment="Left" Background="Pink"  CharacterCasing="Upper" TabIndex="11" />
                        <TextBox   Name="txtVKPAUFLFD" MaxLength="6" Height="20"  Width="80" Margin="0,0,0,0"  HorizontalAlignment="Left" KeyUp="txtVKPAUFLFD_KeyUp" />
                        <TextBox   Name="txtVKPAUFPOS" MaxLength="6" Height="20"  Width="40" Margin="0,0,0,0"  HorizontalAlignment="Left" />
                      
                    </WrapPanel>
                    <WrapPanel>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="发货条件:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1" Grid.Row="0" Height="20" HorizontalAlignment="Left"   Text="{Binding Path=VKKLIEFBED, Source={StaticResource ResourceKey=vwVKKOPF}}" VerticalAlignment="Center" Width="40" />
                        </Grid>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="结算方式:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1"  Name="txtPayment" Width="80" />
                        </Grid>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="运输方式:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1" Grid.Row="0" Height="20" HorizontalAlignment="Left"   Text="{Binding Path=VKKVERSART, Source={StaticResource ResourceKey=vwVKKOPF}}" VerticalAlignment="Center" Width="40" />
                        </Grid>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Button  Content="已付款" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"   VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1" Grid.Row="0" Height="20" HorizontalAlignment="Left"  
                             Text="{Binding Path=VKKKOMENGE, Source={StaticResource ResourceKey=vwVKKOPF}, Converter={StaticResource ResourceKey=d100}}" 
                             VerticalAlignment="Center" Width="80" />
                        </Grid>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="销售合同:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1" Grid.Row="0" Height="20" HorizontalAlignment="Left"  Text="{Binding Path=VKKBESTNR, Source={StaticResource ResourceKey=vwVKKOPF}}" VerticalAlignment="Center" Width="80" />
                        </Grid>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="合同金额:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                            <TextBlock Grid.Column="1" Grid.Row="0" Height="20" HorizontalAlignment="Left"  Text="{Binding Path=VKKGESWERT, Source={StaticResource ResourceKey=vwVKKOPF}}" VerticalAlignment="Center" Width="60" />
                        </Grid>
                    </WrapPanel>
                </StackPanel>
                <DockPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Margin="0,0,0.4,0">
                    <TabControl DockPanel.Dock="Top">

                        <TabItem Header="PPO列表">
                            <WrapPanel Grid.Row="0">
                                <TextBlock Text="是否完成" VerticalAlignment="Top" Height="20" ></TextBlock>
                                <CheckBox FontSize="12"   Margin="10,0,0,0" HorizontalAlignment="Right" Height="20" Width="20">
                                    <CheckBox.LayoutTransform>
                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                    </CheckBox.LayoutTransform>
                                </CheckBox>
                                <TextBlock Text="交期早于"   VerticalAlignment="Top" ></TextBlock>
                                <TextBox    Width="100" Margin="0,0,0,0" Text="{Binding DEND}" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" />
                                <Button  Margin="10,0,0,0" Click="btnQuery_Click" Height="20" Width="20" VerticalAlignment="Top" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Search.png" />
                                    </Button.Background>
                                </Button>
                                <Button  Margin="20,0,0,0" Click="btnPrintYGRPPOLIST_Click" TabIndex="15"  VerticalAlignment="Top" Height="20" Width="20">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Print.png" />
                                    </Button.Background>
                                </Button>
                            </WrapPanel>
                        </TabItem>

                        <TabItem Header="交期查询">
                            <WrapPanel Grid.Row="0">
                                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=查询交期小于等于}}"></TextBlock>
                                <TextBox FontSize="18" Name="txtDel" VerticalAlignment="Center" Width="100">20140909</TextBox>
                                <WrapPanel Visibility="Collapsed">
                                    <TextBlock Text="是否完成" VerticalAlignment="Center"></TextBlock>
                                    <CheckBox   FontSize="12"   Margin="10,0,0,0" HorizontalAlignment="Right">
                                        <CheckBox.LayoutTransform>
                                            <ScaleTransform ScaleX="2" ScaleY="2" />
                                        </CheckBox.LayoutTransform>
                                    </CheckBox>
                                </WrapPanel>
                                <Button  Height="30"  Width="30" Margin="10,0,0,0" Click="btnQueryYGRVV05LIST_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Search.png" />
                                    </Button.Background>
                                </Button>
                                <Button     Margin="20,0,0,0"   Click="btnPrintYGRVV05LIST_Click" TabIndex="15" Height="40" Width="40" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Print.png" />
                                    </Button.Background>
                                </Button>
                            </WrapPanel>
                        </TabItem>

                        <TabItem Header="组织出货">
                        </TabItem>
                        <TabItem Header="应收帐款" Visibility="Collapsed">
                            <WrapPanel Grid.Row="0">
                                <TextBlock Text="是否完成" VerticalAlignment="Center"></TextBlock>
                                <CheckBox   FontSize="12"   Margin="10,0,0,0" HorizontalAlignment="Right">
                                    <CheckBox.LayoutTransform>
                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                    </CheckBox.LayoutTransform>
                                </CheckBox>
                                <Button  Height="30"  Width="30" Margin="10,0,0,0" Click="btnQuery_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Search.png" />
                                    </Button.Background>
                                </Button>
                                <Button  Margin="20,0,0,0"  Click="btnPrintYGRVR02LIST_Click" TabIndex="15" Height="40" Width="40" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Print.png" />
                                    </Button.Background>
                                </Button>
                            </WrapPanel>
                        </TabItem>
                        <TabItem Header="成品入库">
                            <WrapPanel>
                                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=查询入库日期晚于}}"></TextBlock>
                                <TextBox FontSize="18" Name="txtGBDue" VerticalAlignment="Center" Width="100">20140909</TextBox>
                                <WrapPanel Grid.Row="0" Visibility="Collapsed">
                                    <TextBlock Text="是否完成" VerticalAlignment="Center"></TextBlock>
                                    <CheckBox   FontSize="12"   Margin="10,0,0,0" HorizontalAlignment="Right">
                                        <CheckBox.LayoutTransform>
                                            <ScaleTransform ScaleX="2" ScaleY="2" />
                                        </CheckBox.LayoutTransform>
                                    </CheckBox>
                                </WrapPanel>
                                <Button  Height="30"  Width="30" Margin="10,0,0,0" Click="btnQueryGBDaily_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Search.png" />
                                    </Button.Background>
                                </Button>
                                <Button  Margin="20,0,0,0"  Click="btnPrintYGRGBDAILY_Click" TabIndex="15" Height="40" Width="40" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Print.png" />
                                    </Button.Background>
                                </Button>
                            </WrapPanel>
                        </TabItem>
                        <TabItem Header="OTD">
                            <WrapPanel Grid.Row="0">
                                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=年份}}"></TextBlock>
                                <TextBox FontSize="18" Name="txtYear" VerticalAlignment="Center">2014</TextBox>
                                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=月份}}"></TextBlock>
                                <TextBox FontSize="18" Name="txtMonth" VerticalAlignment="Center" Width="30">05</TextBox>
                                <TextBlock Text="是否完成" VerticalAlignment="Center"></TextBlock>
                                <CheckBox Name="IsFinish" FontSize="12"   Margin="10,0,0,0" HorizontalAlignment="Right">
                                    <CheckBox.LayoutTransform>
                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                    </CheckBox.LayoutTransform>
                                </CheckBox>
                                <Button  Height="30"  Width="30" Margin="10,0,0,0" Click="btnQueryOTD_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Search.png" />
                                    </Button.Background>
                                </Button>
                                <Button  Margin="20,0,0,0"  Click="btnPrintYGRVKOTD_Click" TabIndex="15" Height="40" Width="40" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Print.png" />
                                    </Button.Background>
                                </Button>
                            </WrapPanel>
                        </TabItem>
                        <TabItem Header="客户对账单">
                            <WrapPanel>
                                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=查询发货日期晚于}}"></TextBlock>
                                <TextBox FontSize="18" Name="txtVRDue" VerticalAlignment="Center" Width="100">20140909</TextBox>
                                <WrapPanel Visibility="Collapsed">
                                    <TextBlock Text="是否完成" VerticalAlignment="Center"></TextBlock>
                                    <CheckBox   FontSize="12"   Margin="10,0,0,0" HorizontalAlignment="Right">
                                        <CheckBox.LayoutTransform>
                                            <ScaleTransform ScaleX="2" ScaleY="2" />
                                        </CheckBox.LayoutTransform>
                                    </CheckBox>
                                </WrapPanel>
                                <Button  Height="30"  Width="30" Margin="10,0,0,0" Click="btnQueryVR02_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Search.png" />
                                    </Button.Background>
                                </Button>
                                <Button  Margin="20,0,0,0"  Click="btnPrintYGRVR02KD_Click" TabIndex="15" Height="40" Width="40" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="Images/Print.png" />
                                    </Button.Background>
                                </Button>
                            </WrapPanel>
                        </TabItem>

                        <TabItem Header="合同评审"  Visibility="Collapsed">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="29*"/>
                                    <ColumnDefinition Width="798*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="1*"></RowDefinition>
                                </Grid.RowDefinitions>
                                <StackPanel Grid.Row="0" Grid.ColumnSpan="2">
                                    <WrapPanel >
                                        <Button   Content="送审" Margin="20,0,0,0"  Width="51" Click="btnStartApp_Click" TabIndex="15" />
                                    </WrapPanel>
                                </StackPanel>
                                <DockPanel Grid.Row="1" Grid.ColumnSpan="2">
                                    <Expander Header="待处理" DockPanel.Dock="Left" MaxWidth="400">
                                        <Grid>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"></RowDefinition>
                                                <RowDefinition Height="1*"></RowDefinition>
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                            </Grid.ColumnDefinitions>
                                            <StackPanel Grid.Row="0">
                                                <WrapPanel>
                                                    <TextBlock Text="{Binding Path=WHAT, Converter={StaticResource ResourceKey=gb2312},Source={StaticResource ResourceKey=vwEvents}}"></TextBlock>
                                                </WrapPanel>
                                                <WrapPanel>
                                                    <Button Width="30" Height="30" Click="btnWFRefresh_Click">
                                                        <Button.Background>
                                                            <ImageBrush ImageSource="Images/Reload.png"></ImageBrush>
                                                        </Button.Background>
                                                    </Button>
                                                    <TextBlock Text="刷新" VerticalAlignment="Center"></TextBlock>
                                                </WrapPanel>
                                            </StackPanel>
                                            <DataGrid  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                                           AutoGenerateColumns="False"
                                           EnableRowVirtualization="True"  
                                           ItemsSource="{Binding Source={StaticResource ResourceKey=vwEvents}}"  
                                           HeadersVisibility="Column"                           
                                           ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                           FontSize="12"
                                           ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="0,0,0,0" 
                                           >
                                                <DataGrid.Columns>
                                                    <DataGridTextColumn Binding="{Binding Path=CONTROL}" Header="{Binding Source={Localization:Translate Word=状态}}"   Width="Auto"  MinWidth="30"/>
                                                    <DataGridTextColumn Binding="{Binding Path=WFEUSER,Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=用户}}"  Width="Auto" MinWidth="40"/>
                                                    <DataGridTextColumn Binding="{Binding Path=WFEVENTS}" Header="{Binding Source={Localization:Translate Word=事件}}"   Width="Auto"  MinWidth="40"/>
                                                    <DataGridTextColumn Binding="{Binding Path=KRS}"   Width="Auto"  MinWidth="40"/>
                                                    <DataGridTextColumn Binding="{Binding Path=LFD}" Header="{Binding Source={Localization:Translate Word=订单}}"   Width="Auto"  MinWidth="40"/>
                                                    <DataGridTextColumn Binding="{Binding Path=ARTICLE}" Header="{Binding Source={Localization:Translate Word=品种}}"   Width="Auto"  MinWidth="40"/>
                                                    <DataGridTextColumn Binding="{Binding Path=COLOR}" Header="{Binding Source={Localization:Translate Word=色号}}"   Width="Auto"  MinWidth="40"/>
                                                </DataGrid.Columns>
                                            </DataGrid>
                                        </Grid>
                                    </Expander>
                                    <Expander Header="评审情况" DockPanel.Dock="Bottom" IsExpanded="True">
                                        <Grid ShowGridLines="True">
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                                <RowDefinition Height="30"></RowDefinition>
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100"></ColumnDefinition>
                                                <ColumnDefinition Width="80"></ColumnDefinition>
                                                <ColumnDefinition Width="80"></ColumnDefinition>
                                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                            </Grid.ColumnDefinitions>
                                            <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4">
                                                <Button FontSize="18"    BorderBrush="Yellow" Margin="20,0,0,0"  
                                            Width="30" Height="30"
                                            Click="btnWFConfirm_Click" 
                                            >
                                                    <Button.Background>
                                                        <ImageBrush ImageSource="Images/button_ok.png"></ImageBrush>
                                                    </Button.Background>
                                                </Button>
                                                <TextBox Text="确认"></TextBox>
                                                <!--Button FontSize="18" Content="{Binding Source={Localization:TranslateExtension Word=拒绝}}"  BorderBrush="Yellow" Margin="20,0,0,0"  Click="btnWFReject_Click" Width="Auto"/>
                                    <Button FontSize="18" Content="{Binding Source={Localization:TranslateExtension Word=通知}}"  BorderBrush="Yellow" Margin="20,0,0,0"  Click="WFAPPLY_Click" Width="Auto"/>
                                    <TextBlock Text="{Binding Source={Localization:Translate Word=事件}}"></TextBlock>
                                    <TextBox Name="txtEvents"  Background="White"   HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" Width="100" />
                                    <ComboBox   
                                        ItemsSource="{Binding Source={StaticResource ResourceKey=vwEvents}}"
                                        SelectionChanged="EVENTS_SelectionChanged"
                                        Background="Gray"  MinWidth="150"  
                                        DisplayMemberPath="WFEDES"
                                        IsEditable="True"
                                        SelectedValuePath="WFEVENTS"
                                        >
                                    </ComboBox-->
                                            </WrapPanel>
                                            <TextBlock Grid.Row="1" Grid.Column="0" Text="部门" HorizontalAlignment="Center" FontSize="18"></TextBlock>
                                            <TextBlock Grid.Row="1" Grid.Column="1" Text="评审人" HorizontalAlignment="Center"  FontSize="18"></TextBlock>
                                            <TextBlock Grid.Row="1" Grid.Column="2" Text="日期" HorizontalAlignment="Center"  FontSize="18"></TextBlock>
                                            <TextBlock Grid.Row="1" Grid.Column="3" Text="意见" HorizontalAlignment="Center"  FontSize="18"></TextBlock>
                                            <WrapPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Stretch">
                                                <TextBlock Text="品质" VerticalAlignment="Center"></TextBlock>
                                                <CheckBox Name="IsQuality" FontSize="12" Click="IsQuality_Click" Margin="10,0,0,0" HorizontalAlignment="Right">
                                                    <CheckBox.LayoutTransform>
                                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                                    </CheckBox.LayoutTransform>
                                                </CheckBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding TXT010HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="2" Grid.Column="2" Text="{Binding TXT010DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="2" Grid.Column="3" HorizontalAlignment="Stretch" >
                                                <TextBox VerticalAlignment="Center"  HorizontalAlignment="Stretch"  
                                               Text="{Binding TXT010,Source={StaticResource ResourceKey=vwPTXT}}"></TextBox>
                                            </WrapPanel>
                                            <WrapPanel Grid.Row="3" Grid.Column="0" >
                                                <TextBlock Text="颜色" VerticalAlignment="Center"></TextBlock>
                                                <CheckBox Name="IsColor"  FontSize="12" Click="IsQuality_Click" Margin="10,0,0,0">
                                                    <CheckBox.LayoutTransform>
                                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                                    </CheckBox.LayoutTransform>
                                                </CheckBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding TXT020HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="3" Grid.Column="2" Text="{Binding TXT020DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="3" Grid.Column="3" HorizontalAlignment="Stretch" >
                                                <TextBox VerticalAlignment="Center" Text="{Binding TXT020,Source={StaticResource ResourceKey=vwPTXT}}" HorizontalAlignment="Stretch"></TextBox>
                                            </WrapPanel>
                                            <WrapPanel Grid.Row="4" Grid.Column="0" >
                                                <TextBlock Grid.Row="4" Grid.Column="0" Text="备料" VerticalAlignment="Center"></TextBlock>
                                                <CheckBox Name="IsMaterial"  FontSize="12" Click="IsQuality_Click" Margin="10,0,0,0">
                                                    <CheckBox.LayoutTransform>
                                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                                    </CheckBox.LayoutTransform>
                                                </CheckBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding TXT030HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="4" Grid.Column="2" Text="{Binding TXT030DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="4" Grid.Column="3" HorizontalAlignment="Stretch" >
                                                <TextBox VerticalAlignment="Center" Text="{Binding TXT030,Source={StaticResource ResourceKey=vwPTXT}}" HorizontalAlignment="Stretch"></TextBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="5" Grid.Column="0" Text="运输"></TextBlock>
                                            <TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding TXT040HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="5" Grid.Column="2" Text="{Binding TXT040DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="5" Grid.Column="3" HorizontalAlignment="Stretch" >
                                                <TextBox VerticalAlignment="Center" Text="{Binding TXT040,Source={StaticResource ResourceKey=vwPTXT}}" Width="200"></TextBox>
                                                <TextBox VerticalAlignment="Center" Text="{Binding VKPLIEFTERM,Source={StaticResource ResourceKey=vwMaster}}" Width="80"></TextBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="6" Grid.Column="0" Text="计划"></TextBlock>
                                            <TextBlock Grid.Row="6" Grid.Column="1" Text="{Binding TXT050HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="6" Grid.Column="2" Text="{Binding TXT050DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="6" Grid.Column="3" HorizontalAlignment="Stretch">
                                                <TextBox VerticalAlignment="Center" Text="{Binding TXT050,Source={StaticResource ResourceKey=vwPTXT}}" HorizontalAlignment="Stretch"></TextBox>
                                            </WrapPanel>
                                            <WrapPanel Grid.Row="7" Grid.Column="0" >
                                                <TextBlock Grid.Row="7" Grid.Column="0" Text="生产" VerticalAlignment="Center"></TextBlock>
                                                <CheckBox Name="IsProd"   FontSize="12" Click="IsQuality_Click" Margin="10,0,0,0">
                                                    <CheckBox.LayoutTransform>
                                                        <ScaleTransform ScaleX="2" ScaleY="2" />
                                                    </CheckBox.LayoutTransform>
                                                </CheckBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="7" Grid.Column="1" Text="{Binding TXT060HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="7" Grid.Column="2" Text="{Binding TXT060DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="7" Grid.Column="3" HorizontalAlignment="Stretch" >
                                                <TextBox VerticalAlignment="Center" Text="{Binding TXT060,Source={StaticResource ResourceKey=vwPTXT}}" HorizontalAlignment="Stretch"></TextBox>
                                            </WrapPanel>
                                            <TextBlock Grid.Row="8" Grid.Column="0" Text="销售"></TextBlock>
                                            <TextBlock Grid.Row="8" Grid.Column="1" Text="{Binding TXT070HR,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <TextBlock Grid.Row="8" Grid.Column="2" Text="{Binding TXT070DT,Source={StaticResource ResourceKey=vwPTXT}}"></TextBlock>
                                            <WrapPanel Grid.Row="8" Grid.Column="3" HorizontalAlignment="Stretch">
                                                <TextBox VerticalAlignment="Center" Text="{Binding TXT070,Source={StaticResource ResourceKey=vwPTXT}}" HorizontalAlignment="Stretch"></TextBox>
                                            </WrapPanel>
                                        </Grid>
                                    </Expander>
                                </DockPanel>
                            </Grid>
                        </TabItem>
                        <TabItem Header="应收款信息"  Visibility="Collapsed">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="1*"></RowDefinition>
                                </Grid.RowDefinitions>
                                <StackPanel Grid.Row="0">
                                    <WrapPanel>

                                    </WrapPanel>
                                </StackPanel>
                            </Grid>
                        </TabItem>
                    </TabControl>
                    <DataGrid   Visibility="Collapsed"
                              AutoGenerateColumns="False"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                              HeadersVisibility="Column"
                              x:Name="dlgVK13"    
                              Height="Auto"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=VKPPOSTYP}" Header="类型"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFKRS}"   Header=""  Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFLFD}" Header="编号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFPOS}" Header=""   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=KDKUNDNA}" Header="客户"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPART}" Header="品种"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPFARBE}" Header="色号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKCOM}" Header="成份"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=STRENGTH}" Header="强力标准"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPMENGE1}" Header="预计重量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPMEEH}" Header="单位"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKANSPRECH}" Header="联系人" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPPREISX}" Header="价格"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=PUM}" Header="UM"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPLIEFTERM}" Header="交期"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKBESTDAT}" Header="询价日期"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPNEUDAT}" Header="报价日期"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKGLTBIS}" Header="有效期"  Width="Auto" MinWidth="40"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid   Visibility="Collapsed"
                              AutoGenerateColumns="False"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                              HeadersVisibility="Column"
                              x:Name="dlgMaster"    
                              Height="Auto"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=VKPPOSTYP}" Header="类型"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFKRS}"   Header=""  Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFLFD}" Header="PPO"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPNEUDAT}" Header="接单日期"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKBESTNR}" Header="申购单号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=KDKUNDNA}" Header="客户"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPART}" Header="品种"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPFARBE}" Header="色号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKCOM}" Header="成份"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPKDFARBNR}" Header="客人色号" Width="Auto" MinWidth="100"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKBESTNR}" Header="合同号"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=STRENGTH}" Header="强力标准"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=TWIST}" Header="捻度标准"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPZUSATZ}" Header="颜色标准"  Width="Auto" MinWidth="20"/>
                            <DataGridTextColumn Binding="{Binding Path=VAAPRGR}" Header="用途"   Width="Auto"  MinWidth="20"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPMENGE1}" Header="数量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPZUGET}" Header="成纱量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPFREIGE}" Header="已出货" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=STOCKQTY}" Header="库存量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=QTYDIFF}" Header="欠数" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=ISDIFF}" Header="欠否" Width="Auto" MinWidth="20"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPMEEH}" Header="单位"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=OVERSHORT}" Header="溢短装" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPPREIS}" Header="价格"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=PUM}" Header="UM"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPLIEFTERM}" Header="交期"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPERLDAT}" Header="实际完成"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=DELAYDAYS}" Header="拖期天数"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=ISDELAY}" Header="是否拖期"  Width="Auto" MinWidth="40"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid   Visibility="Collapsed"
                              AutoGenerateColumns="False"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                              HeadersVisibility="Column"
                              x:Name="dlgVV05"    
                              Height="Auto"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=VKPLIEFTERM}" Header="预计发货日期"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPPOSTYP}" Header="类型"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=KDKUNDNA}" Header="客户"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=KDSTRASSE1}" Header="送货地点"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFKRS}"   Header=""  Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPAUFLFD}" Header="PPO"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKBESTNR}" Header="合同号"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKMENGE1}" Header="重量"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPART}" Header="品种"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPFARBE}" Header="色号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPMENGE1}" Header="数量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=QTYPLAN}" Header="计划量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPZUGET}" Header="产出量" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPMEEH}" Header="单位"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPPREIS}" Header="价格"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=PUM}" Header="UM"  Width="Auto" MinWidth="40"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid   Visibility="Collapsed"
                              AutoGenerateColumns="False"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                              HeadersVisibility="Column"
                              x:Name="dlgVR02"    
                              Height="Auto"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=KDKUNDNA}" Header="客户"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKKBESTNR}" Header="合同号"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPART}" Header="品种"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPFARBE}" Header="色号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPKDARTNR}" Header="客户纱线"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPKDFARBNR}" Header="客户色号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GPASPPART}" Header="纺批号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GPAFBPART}" Header="缸号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VVLIEFSCH,Converter={StaticResource ResourceKey=pnum}}"   Header="发货单"  Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VVFRDAT}" Header="发货日期"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VVTNETKG}" Header="发货数量"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VRPMEEH}" Header="单位"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VKPPREISX}" Header="价格"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=PUM}" Header="UM"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VRPWAWERT}" Header="发货金额"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VRPGESWERT}" Header="开票金额"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GLOAMICUC}" Header="收款金额" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VRKFAELLIG}" Header="货款到期日" Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=DUEAMOUNT}" Header="到期货款" Width="Auto" MinWidth="40"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid   Visibility="Collapsed"
                              AutoGenerateColumns="False"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                              HeadersVisibility="Column"
                              x:Name="dlgGBD"    
                              Height="Auto"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=GABBUCHDAT}" Header="日期"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GABART}" Header="纱线"  Width="Auto" MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GABFARBE}" Header="色号"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GPBSPPART}" Header="纺批"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GPBZWPART}" Header="捻批"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=GABKG}" Header="数量"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=PRICE}" Header="单价"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=SURCHAGE}" Header="小缸费"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=VATVALUE}" Header="含税值"   Width="Auto"  MinWidth="40"/>
                            <DataGridTextColumn Binding="{Binding Path=NETVALUE}" Header="净值"   Width="Auto"  MinWidth="40"/>
                        </DataGrid.Columns>
                    </DataGrid>
                </DockPanel>
            </Grid>
        </TabItem>
        <TabItem Header="数据分析" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="1*"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <me:QVWVK02/>
            </Grid> 
        </TabItem>
        <TabItem Header="客户订单"  Name="TabChart1">
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <ChartEx:ChartEx0001 Grid.Row="1"   Name="Chart01" />
                </Grid>
            </ScrollViewer>
        </TabItem>
        <TabItem Header="周期分析"  Name="TabChart2" Visibility="Collapsed" >
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <ChartEx:ChartEx0002 Grid.Row="1"   Name="Chart02" />
                </Grid>
            </ScrollViewer>
        </TabItem>
        <TabItem Header="成本分析"  Name="TabChart3" Visibility="Collapsed" >
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <ChartEx:ChartEx0003 Grid.Row="1"   Name="Chart03" />
                </Grid>
            </ScrollViewer>
        </TabItem>
    </TabControl>
</local:DocumentBase>